<?php
namespace Lib\Exception;

/**
 * Class description
 * 
 * @since 1.0
 * @author Anton Patrikeyev <anton.patrikeyev@gmail.com>
 */
abstract class AbstractException extends \Exception{
   /**
    * @var string
    */
   protected $_currentMessage = null;

   protected $_message = "";

    /**
     * @param string $message
     * @return void
     */
    public function setCurrentMessage($message)
    {
        $this->_currentMessage = $message;
    }

    /**
     * @return string
     */
    public function getCurrentMessage()
    {
        return ($this->_currentMessage)?$this->_currentMessage : $this->_message;
    }
}